home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / emacssrc.zip / EMACSSRC.TAR / emacs-19.17 / info / info < prev    next >
Text File  |  1993-06-11  |  29KB  |  676 lines

  1. This file documents the Info program.  -*-Text-*-
  2. The H command of Info goes to the node Help in this file.
  3. 
  4. File: info    Node: Top    Up: (DIR)    Next: Expert
  5.  
  6. Info is a program for reading documentation, which you are using now.
  7.  
  8. To learn how to use Info, type the command "h".  It will bring you
  9. to a programmed instruction sequence.
  10.  
  11. * Menu:
  12.  
  13. * Expert::    Advanced Info commands: g, s, e, and 1 - 5.
  14. * Add::        Describes how to add new nodes to the hierarchy.
  15.         Also tells what nodes look like.
  16. * Menus::    How to add to or create menus in Info nodes.
  17. * Cross-refs::    How to add cross-references to Info nodes.
  18. * Tags::    How to make tag tables for Info files.
  19. * Checking::    How to check the consistency of an Info file.
  20. * Variables::    Variables modifying the behavior of Info.
  21. * Texinfo: (texinfo).
  22.         How to generate an Info file and a printed manual
  23.         from the same source file.
  24. 
  25. File: info    Node: Help-Small-Screen        Next: Help
  26.  
  27. Since your terminal has an unusually small number of lines on its
  28. screen, it is necessary to give you special advice at the beginning.
  29.  
  30. If you see the text "--All----" at near the bottom right corner of
  31. the screen, it means the entire text you are looking at fits on the
  32. screen.  If you see "--Top----" instead, it means that there is more
  33. text below that does not fit.  To move forward through the text and
  34. see another screen full, press the Space bar.  To move back up, press
  35. the key labeled Delete or DEL.
  36.  
  37. Here are 40 lines of junk, so you can try Spaces and Deletes and
  38. see what they do.  At the end are instructions of what you should do
  39. next.
  40.  
  41. This is line 17
  42. This is line 18
  43. This is line 19
  44. This is line 20
  45. This is line 21
  46. This is line 22
  47. This is line 23
  48. This is line 24
  49. This is line 25
  50. This is line 26
  51. This is line 27
  52. This is line 28
  53. This is line 29
  54. This is line 30
  55. This is line 31
  56. This is line 32
  57. This is line 33
  58. This is line 34
  59. This is line 35
  60. This is line 36
  61. This is line 37
  62. This is line 38
  63. This is line 39
  64. This is line 40
  65. This is line 41
  66. This is line 42
  67. This is line 43
  68. This is line 44
  69. This is line 45
  70. This is line 46
  71. This is line 47
  72. This is line 48
  73. This is line 49
  74. This is line 50
  75. This is line 51
  76. This is line 52
  77. This is line 53
  78. This is line 54
  79. This is line 55
  80. This is line 56
  81.  
  82. If you have managed to get here, go back to the beginning with
  83. Delete, and come back here again, then you understand Space and
  84. Delete.  So now type an "n"--just one character; don't type the
  85. quotes and don't type a Return afterward-- to get to the normal start
  86. of the course.
  87. 
  88. File: info    Node: Help    Next: Help-P    Previous: Help-Small-Screen
  89.  
  90. You are talking to the program Info, for reading documentation.
  91.  
  92.   Right now you are looking at one "Node" of Information.
  93. A node contains text describing a specific topic at a specific
  94. level of detail.  This node's topic is "how to use Info".
  95.  
  96.   The top line of a node is its "header".  This node's header (look at
  97. it now) says that it is the node named "Help" in the file "info".
  98. It says that the Next node after this one is the node called "Help-P".
  99. An advanced Info command lets you go to any node whose name you know.
  100.  
  101.   Besides a "Next", a node can have a "Previous" or an "Up".
  102. This node has a "Previous" but no "Up", as you can see.
  103.  
  104.   Now it's time to move on to the Next node, named "Help-P".
  105.  
  106. >> Type "n" to move there.  Type just one character;
  107.    don't type the quotes and don't type a Return afterward.
  108.  
  109. ">>" in the margin means it is really time to try a command.
  110. 
  111. File: info    Node: Help-P    Next: Help-^L    Previous: Help
  112.  
  113. This node is called "Help-P".  The "Previous" node, as you see, is
  114. "Help", which is the one you just came from using the "N" command.
  115. Another "N" command now would take you to the Next node, "Help-^L".
  116.  
  117. >> But don't do that yet.  First, try the "p" command, which takes
  118. you to the Previous node.  When you get there, you can do an "n"
  119. again to return here.
  120.  
  121.   This all probably seems insultingly simple so far, but DON'T be
  122. led into skimming.  Things will get more complicated soon.  Also,
  123. don't try a new command until you are told it's time to.  Otherwise,
  124. you may make Info skip past an important warning that was coming up.
  125.  
  126. >> Now do an "n" to get to the node "Help-^L" and learn more.
  127. 
  128. File: info    Node: Help-^L    Next: Help-M    Previous: Help-P
  129.  
  130. Space, Delete, B and ^L commands.
  131.  
  132.   This node's header tells you that you are now at node "Help-^L", and
  133. that "P" would get you back to "Help-P".  The line starting "Space,"
  134. is a "Title", saying what the node is about (most nodes have titles).
  135.  
  136.   This is a big node and it doesn't all fit on your display screen.
  137. You can tell that there is more that isn't visible because you
  138. can see the string "--Top-----" rather than "--All-----" near
  139. the bottom right corner of the screen.
  140.  
  141.   The Space, Delete and B commands exist to allow you to "move
  142. around" in a node that doesn't all fit on the screen at once.
  143. Space moves forward, to show what was below the bottom of the screen.
  144. Delete moves backward, to show what was above the top of the screen
  145. (there isn't anything above the top until you have typed some spaces).
  146. >> Now try typing a Space (afterward, type a Delete to return here).
  147.  
  148.   When you type the space, the two lines that were at the bottom of the 
  149. screen appear at the top, followed by more lines.  Delete takes the
  150. two lines from the top and moves them to the bottom, USUALLY, but if
  151. there are not a full screen's worth of lines above them they may not
  152. make it all the way to the bottom.
  153.  
  154.   If you type a Space when there is no more to see, it will ring the
  155. bell and otherwise do nothing.  The same goes for a Delete when
  156. the header of the node is visible.
  157.  
  158.   If your screen is ever garbaged, you can tell Info to print it out
  159. again by typing C-l (Control-L, that is--hold down "Control" and
  160. type an "L" or "l").
  161. >> Type C-l now.
  162.  
  163.   To move back to the beginning of the node you are on, you can type
  164. a lot of Deletes.  You can also type simply "b" for beginning.
  165. >> Try that now.  (We have put in lots of verbiage to push this past
  166.    the first screenful, but screens are so big nowadays that perhaps
  167.    it isn't enough.  You may need to shrink your Emacs.)
  168.   Then come back, with Spaces.
  169.  
  170.   If your screen is very tall, all of this node might fit at once.
  171. In that case, "b" won't do anything.  Sorry; what can we do?
  172.  
  173.   You have just learned a considerable number of commands.  If you
  174. want to use one but have trouble remembering which, you should type
  175. a "?" which will print out a brief list of commands.  When you are
  176. finished looking at the list, make it go away by typing a Space.
  177. >> Type a "?" now.  After it finishes, type a Space.
  178.  
  179.   From now on, you will encounter large nodes without warning, and
  180. will be expected to know how to use Space and Delete to move
  181. around in them without being told.  Since not all terminals have
  182. the same size screen, it would be impossible to warn you anyway.
  183.  
  184. >> Now type "n" to see the description of the "m" command.
  185. 
  186. File: info    Node: Help-M    Next: Help-Adv    Previous: Help-^L
  187.  
  188. Menus and the "m" command
  189.  
  190.   With only the "n" and "p" commands for moving between nodes, nodes
  191. are restricted to a linear sequence.  Menus allow a branching
  192. structure.  A menu is a list of other nodes you can move to.  It is
  193. actually just part of the text of the node formatted specially so that
  194. Info can interpret it.  The beginning of a menu is always identified
  195. by a line which starts with "* Menu:".  A node contains a menu if and
  196. only if it has a line in it which starts that way.  The only menu you
  197. can use at any moment is the one in the node you are in.  To use a
  198. menu in any other node, you must move to that node first. 
  199.  
  200.   After the start of the menu, each line that starts with a "*"
  201. identifies one subtopic.  The line will usually contain a brief name
  202. for the subtopic (followed by a ":"), the name of the node that talks
  203. about that subtopic, and optionally some further description of the
  204. subtopic.  Lines in the menu that don't start with a "*" have no
  205. special meaning - they are only for the human reader's benefit and do
  206. not define additional subtopics.  Here is an example:
  207. * Foo:    FOO's Node    This tells about FOO
  208. The subtopic name is Foo, and the node describing it is "FOO's Node".
  209. The rest of the line is just for the reader's Information.
  210. [[ But this line is not a real menu item, simply because there is
  211. no line above it which starts with "* Menu:".]]
  212.  
  213.   When you use a menu to go to another node (in a way that will be
  214. described soon), what you specify is the subtopic name, the first
  215. thing in the menu line.  Info uses it to find the menu line, extracts
  216. the node name from it, and goes to that node.  The reason that there
  217. is both a subtopic name and a node name is that the node name must be
  218. meaningful to the computer and may therefore have to be ugly looking.
  219. The subtopic name can be chosen just to be convenient for the user to
  220. specify.  Often the node name is convenient for the user to specify
  221. and so both it and the subtopic name are the same.  There is an
  222. abbreviation for this:
  223. * Foo::   This tells about FOO
  224. This means that the subtopic name and node name are the same; they are
  225. both "Foo".
  226.  
  227. >>  Now use Spaces to find the menu in this node, then come back to
  228. here with a "b" and some Spaces.  As you see, a menu is actually visible
  229. in its node.  If you can't find a menu in a node by looking at it,
  230. then the node doesn't have a menu and the "m" command is not available.
  231.  
  232.   The command to go to one of the subnodes is "m" - but DON'T DO IT
  233. YET!  Before you use "m", you must understand the difference between
  234. commands and arguments.  So far, you have learned several commands
  235. that do not need arguments.  When you type one, Info processes it and
  236. is instantly ready for another command.  The "m" command is different:
  237. it is incomplete without the NAME OF THE SUBTOPIC.  Once you have
  238. typed "m", Info tries to read the subtopic name.
  239.  
  240.   Now look for the line containing many dashes near the bottom of the
  241. screen.  There is one more line beneath that one, but usually it is
  242. blank.  If it is empty, Info is ready for a command, such as "n" or "b"
  243. or Space or "m".  If that line contains text ending in a colon, it
  244. means Info is trying to read the ARGUMENT to a command.  At such
  245. times, commands won't work, because Info will try to use them as the
  246. argument.  You must either type the argument and finish the command
  247. you started, or type Control-g to cancel the command.  When you have
  248. done one of those things, the line will become blank again.
  249.  
  250.   The command to go to a subnode via a menu is "m".  After you type
  251. the "m", the line at the bottom of the screen says "Menu item: ".
  252. You must then type the name of the subtopic you want, and end it with
  253. a Return.
  254.  
  255.   You can abbreviate the subtopic name.  If the abbreviation is not
  256. unique, the first matching subtopic is chosen.  Some menus will put
  257. the shortest possible abbreviation for each subtopic name in capital
  258. letters, so you can see how much you need to type.  It does not
  259. matter whether you use upper case or lower case when you type the
  260. subtopic.  You should not put any spaces at the end, or inside of the
  261. item name, except for one space where a space appears in the item in
  262. the menu.
  263.  
  264.   You can also use the "completion" feature to help enter the subtopic
  265. name.  If you type the Tab key after entering part of a name, it will
  266. magically fill in more of the name--as much as follows uniquely from
  267. what you have entered.
  268.  
  269.   If you move the cursor to one of the menu subtopic lines, then you
  270. do not need to type the argument: you just type a Return, and it
  271. stands for the subtopic of the line you are on.
  272.  
  273.   Here is a menu to give you a chance to practice.
  274.  
  275. * Menu:       The menu starts here.
  276.  
  277. This menu gives you three ways of going to one place, Help-FOO.
  278.  
  279. * Foo:    Help-FOO    A node you can visit for fun
  280. * Bar:    Help-FOO    Strange!  two ways to get to the same place.
  281. * Help-FOO::        And yet another!
  282.  
  283. >>  Now type just an "m" and see what happens:
  284.  
  285.   Now you are "inside" an "m" command.  Commands can't be used now;
  286. the next thing you will type must be the name of a subtopic.
  287.  
  288.   You can change your mind about doing the "m" by typing Control-g.
  289. >> Try that now;  notice the bottom line clear.
  290. >> Then type another "m".
  291.  
  292. >> Now type "BAR", the item name.  Don't type Return yet.
  293.  
  294.   While you are typing the item name, you can use the Delete
  295. character to cancel one character at a time if you make a mistake.
  296. >> Type one to cancel the "R".  You could type another "R" to
  297. replace it.  You don't have to, since "BA" is a valid abbreviation.
  298. >> Now you are ready to go.  Type a Return.
  299.  
  300.   After visiting Help-FOO, you should return here.
  301.  
  302. >> Type "n" to see more commands.
  303. 
  304. File: info    Node: Help-FOO    Up: Help-M
  305.  
  306. The "u" command
  307.  
  308.   Congratulations!  This is the node Help-FOO.  Unlike the other
  309. nodes you have seen, this one has an "Up": "Help-M", the node you
  310. just came from via the "m" command.  This is the usual convention--
  311. the nodes you reach from a menu have Ups that lead back to the menu.
  312. Menus move Down in the tree, and Up moves Up.  Previous, on the other
  313. hand, is usually used to "stay on the same level but go backwards".
  314.  
  315.   You can go back to the node Help-M by typing the command
  316. "u" for "Up".  That will put you at the FRONT of the node - to get
  317. back to where you were reading you will have to type some Spaces.
  318.  
  319. >> Now type "u" to move back up to Help-M.
  320. 
  321. File: info    Node: Help-Adv    Next: Help-Q    Previous: Help-M
  322.  
  323. Some advanced Info commands
  324.  
  325.   The course is almost over, so please stick with it to the end.
  326.  
  327.   If you have been moving around to different nodes and wish to
  328. retrace your steps, the "l" command ("l" for "last") will do that, one
  329. node-step at a time.  As you move from node to node, Info records the
  330. nodes where you have been in a special history list.  The "l" command
  331. revisits nodes in the history list; each successive "l" command moves
  332. one step back through the history.
  333.  
  334.   If you have been following directions, an "l" command now will get
  335. you back to Help-M.  Another "l" command would undo the "u" and get
  336. you back to Help-FOO.  Another "l" would undo the M and get you back
  337. to Help-M.
  338.  
  339. >> Try typing three "l"'s, pausing in between to see what each "l" does.
  340. Then follow directions again and you will end up back here.
  341.  
  342.   Note the difference between "l" and "p":  "l" moves to where YOU
  343. last were, whereas "p" always moves to the node which the header says
  344. is the "Previous" node (from this node, to Help-M).
  345.  
  346.   The "d" command gets you instantly to the Directory node.
  347. This node, which is the first one you saw when you entered Info,
  348. has a menu which leads (directly, or indirectly through other menus),
  349. to all the nodes that exist.
  350.  
  351. >> Try doing a "d", then do an "l" to return here (yes, DO return).
  352.  
  353.   Sometimes, in Info documentation, you will see a cross reference.
  354. Cross references look like this: *Note Cross: Help-Cross.  That is a
  355. real, live cross reference which is named "Cross" and points at the
  356. node named "Help-Cross".
  357.  
  358.   If you wish to follow a cross reference, you must use the "f"
  359. command.  The "f" must be followed by the cross reference name (in
  360. this case, "Cross").  While you enter the name, you can use Delete to
  361. edit your input.  If you change your mind about following any
  362. reference, you can use Control-g to cancel the command.
  363.  
  364.   Completion is available in the "f" command; you can complete among
  365. all the cross reference names in the current node by typing a Tab.
  366.  
  367. >> Type "f", followed by "Cross", and a Return.
  368.  
  369.   To get a list of all the cross references in the current node, you can
  370. type "?" after an "f".  The "f" continues to await a cross reference name
  371. even after printing the list, so if you don't actually want to follow
  372. a reference, you should type a Control-g to cancel the "f".
  373.  
  374. >> Type "f?" to get a list of the cross references in this node.  Then
  375. type a Control-g and see how the "f" gives up.
  376.  
  377. >> Now type "n" to see the last node of the course.
  378. 
  379. File: info    Node: Help-Cross
  380.  
  381.   This is the node reached by the cross reference named "Cross".
  382.  
  383.   While this node is specifically intended to be reached by a cross
  384. reference, most cross references lead to nodes that "belong" someplace
  385. else far away in the structure of Info.  So you can't expect the
  386. footnote to have a Next, Previous or Up pointing back to where you
  387. came from.  In general, the "l" (el) command is the only way to get
  388. back there.
  389.  
  390. >> Type "l" to return to the node where the cross reference was.
  391. 
  392. File: info    Node: Help-Q    Previous: Help-Adv    Up: Top
  393.  
  394.   To get out of Info, back to what you were doing before, type "q"
  395. for "Quit".
  396.  
  397.   This is the end of the course on using Info.  There are some other
  398. commands that are meant for experienced users; they are useful, and
  399. you can find them by looking in the directory for documentation on
  400. Info.  Finding them will be a good exercise in using Info in the usual
  401. manner.
  402.  
  403. >> Type "d" to go to the Info directory node;
  404.    then type "mInfo" and Return, to get to the node about Info
  405.    and see what other help is available.
  406. 
  407. File: info,  Node: Expert,  Up: Top,  Previous: Top,  Next: Add
  408.  
  409. Some Advanced Info Commands ("g", "s", "1" - "5", and "e").
  410.  
  411. If you know a node's name, you can go there by typing
  412. "g", the name, and Return.  Thus, "gTop<Return>" would go to the node
  413. called Top in this file (its directory node).  "gExpert<Return>"
  414. would come back here.
  415.  
  416. Unlike "m", "g" does not allow the use of abbreviations.
  417.  
  418. To go to a node in another file, you can include the filename in the
  419. node name by putting it at the front, in parentheses.  Thus,
  420. "g(dir)Top<Return>" would go to the Info Directory node, which is node Top
  421. in the file dir.
  422.  
  423. The node name "*" specifies the whole file.  So you can look at all
  424. of the current file by typing "g*<Return>" or all of any other file
  425. with "g(FILENAME)<Return>".
  426.  
  427. The "s" command allows you to search a whole file for a string.  It
  428. will switch to the next node if and when that is necessary.  You type
  429. "s" followed by the string to search for, terminated by Return.  To
  430. search for the same string again, just "s" followed by Return will do.
  431. The file's nodes will be scanned in the order they are in in the file,
  432. which has no necessary relationship to the order that they may be in
  433. in the tree structure of menus and next's.  But normally the two
  434. orders will not be far different.  In any case, you can always do a
  435. "b" to find out what node you have reached, if the header isn't
  436. visible (this can happen, because "s" puts your cursor at the
  437. occurrence of the string, not at the beginning of the node).
  438.  
  439. If you grudge the system each character of type-in it requires,
  440. you might like to use the commands "1", "2", "3", "4", and "5".
  441. They are short for the "m" command together with an argument.
  442. "1" goes through the first item in the current node's menu;
  443. "2" goes through the second item, etc.  Note that numbers
  444. larger than 5 are not allowed.  If the item you want is that
  445. far down, you are better off using an abbreviation for its
  446. name than counting.
  447.  
  448. The Info command "e" changes from Info mode to an ordinary
  449. Emacs editing mode, so that you can edit the text of the current node.
  450. Type C-c C-c to switch back to Info.  The "e" command is allowed
  451. only if the variable Info-enable-edit is non-nil.
  452. 
  453. File: info,  Node: Add,  Up: Top,  Previous: Expert,  Next: Menus
  454.  
  455. To add a new topic to the list in the Info directory, you must
  456.  1) create some nodes, in some file, to document that topic.
  457.  2) put that topic in the menu in the directory.  *Note Menu: Menus.
  458.  
  459.   Usually, the way to create the nodes is with Texinfo (*Note Texinfo:
  460. (texinfo).); this has the advantage that you can also make a printed
  461. manual from them.  However, if you want to edit an Info file, here is
  462. how.
  463.  
  464.   The new node can live in an existing documentation file, or in a new
  465. one.  It must have a ^_ character before it (invisible to the user;
  466. this node has one but you can't see it), and it ends with either a ^_,
  467. a ^L, or the end of file.  Note:  If you put in a ^L to end a new
  468. node, be sure that there is a ^_ after it to start the next one, since
  469. ^L can't START a node.  Also, a nicer way to make a node boundary be a
  470. page boundary as well is to put a ^L RIGHT AFTER the ^_.
  471.  
  472.   The ^_ starting a node must be followed by a newline or a ^L newline,
  473. after which comes the node's header line.  The header line must give
  474. the node's name (by which Info will find it), and state the names of
  475. the Next, Previous, and Up nodes (if there are any).  As you can see,
  476. this node's Up node is the node Top, which points at all the
  477. documentation for Info.  The Next node is "Menus".
  478.  
  479.   The keywords "Node", "Previous", "Up", and "Next",  may appear in
  480. any order, anywhere in the header line, but the recommended order is
  481. the one in this sentence.  Each keyword must be followed by a colon,
  482. spaces and tabs, and then the appropriate name.  The name may be
  483. terminated with a tab, a comma, or a newline.  A space does not end
  484. it; node names may contain spaces.  The case of letters in the names
  485. is insignificant.
  486.  
  487.   A node name has two forms.  A node in the current file is named by
  488. what appears after the "Node: " in that node's first line.  For
  489. example, this node's name is "Add".  A node in another file is named
  490. by "(FILENAME)NODE-WITHIN-FILE", as in "(info)Add" for this node.  If
  491. the filename starts with "./" then it is relative to the current
  492. directory; otherwise, relative filenames are taken to start from the
  493. standard Info file directory of your site.  The name "(FILENAME)Top"
  494. can be abbreviated to just "(FILENAME)".  By convention, the name
  495. "Top" is used for the "highest" node in any single file--the node
  496. whose "Up" points out of the file.  The Directory node is "(dir)".
  497. The Top node of a document file listed in the Directory should have an
  498. "Up: (dir)" in it.
  499.  
  500.   The node name "*" is special: it refers to the entire file.  Thus,
  501. g* will show you the whole current file.  The use of the node * is to
  502. make it possible to make old-fashioned, unstructured files into nodes
  503. of the tree.
  504.  
  505.   The "Node:" name, in which a node states its own name, must not
  506. contain a filename, since Info when searching for a node does not
  507. expect one to be there.  The Next, Previous and Up names may contain
  508. them.  In this node, since the Up node is in the same file, it was not
  509. necessary to use one. 
  510.  
  511.   Note that the nodes in this file have a File name in the header
  512. line.  The File names are ignored by Info, but they serve as
  513. comments to help identify the node for the user.
  514. 
  515. File: info, Node: Menus, Previous: Add, Up: Top, Next: Cross-refs
  516.  
  517. How to Create Menus:
  518.  
  519.   Any node in the Info hierarchy may have a MENU--a list of subnodes. 
  520. The "m" command searches the current node's menu for the topic which it
  521. reads from the terminal.
  522.  
  523.   A menu begins with a line starting with "* Menu:".  The rest of the
  524. line is a comment.  After the starting line, every line that begins
  525. with a "* " lists a single topic.  The name of the topic--the arg
  526. that the user must give to the "m" command to select this topic--
  527. comes right after the star and space, and is followed by 
  528. a colon, spaces and tabs, and the name of the node which discusses
  529. that topic.  The node name, like node names following Next,
  530. Previous and Up, may be terminated with a tab, comma, or newline;
  531. it may also be terminated with a period.
  532.  
  533.   If the node name and topic name are the same, then rather than
  534. giving the name twice, the abbreviation "* NAME::" may be used
  535. (and should be used, whenever possible, as it reduces the visual
  536. clutter in the menu).
  537.  
  538.   It is considerate to choose the topic names so that they differ
  539. from each other very near the beginning--this allows the user to type
  540. short abbreviations.  In a long menu, it is a good idea to capitalize
  541. the beginning of each item name which is the minimum acceptable
  542. abbreviation for it (a long menu is more than 5 or so entries).
  543.  
  544.   The nodes listed in a node's menu are called its "subnodes", and
  545. it is their "superior".  They should each have an "Up:" pointing at
  546. the superior.  It is often useful to arrange all or most of the
  547. subnodes in a sequence of Next's/Previous's so that someone who
  548. wants to see them all need not keep revisiting the Menu.
  549.  
  550.   The Info Directory is simply the menu of the node "(dir)Top"--that
  551. is, node Top in file .../info/dir.  You can put new entries in that
  552. menu just like any other menu.  The Info Directory is NOT the same as
  553. the file directory called "info".  It happens that many of Info's
  554. files live on that file directory, but they don't have to; and files
  555. on that directory are not automatically listed in the Info Directory
  556. node.
  557.  
  558.   Also, although the Info node graph is claimed to be a "hierarchy",
  559. in fact it can be ANY directed graph.  Shared structures and pointer
  560. cycles are perfectly possible, and can be used if they are
  561. appropriate to the meaning to be expressed.  There is no need for all
  562. the nodes in a file to form a connected structure.  In fact, this
  563. file has two connected components.  You are in one of them, which is
  564. under the node Top;  the other contains the node Help which the "h"
  565. command goes to.  In fact, since there is no garbage collector,
  566. nothing terrible happens if a substructure is not pointed to, but
  567. such a substructure will be rather useless since nobody will ever
  568. find out that it exists.
  569. 
  570. File: info, Node: Cross-refs, Previous: Menus, Up: Top, Next: Tags
  571.  
  572. Creating Cross References:
  573.  
  574.   A cross reference can be placed anywhere in the text, unlike a menu
  575. item which must go at the front of a line.  A cross reference looks
  576. like a menu item except that it has "*note" instead of "*".  It CANNOT
  577. be terminated by a ")", because ")"'s are so often part of node names.
  578. If you wish to enclose a cross reference in parentheses, terminate it
  579. with a period first.  Here are two examples of cross references pointers:
  580.  
  581.      *Note details: commands.  (See *note 3: Full Proof.)
  582.  
  583. They are just examples.  The places they "lead to" don't really exist!
  584. 
  585. File: info,  Node: Tags,  Previous: Cross-refs,  Up: Top,  Next: Checking
  586.  
  587. Tag Tables for Info Files:
  588.  
  589.   You can speed up the access to nodes of a large Info file by giving
  590. it a tag table.  Unlike the tag table for a program, the tag table for
  591. an Info file lives inside the file itself and will automatically be
  592. used whenever Info reads in the file.
  593.  
  594.   To make a tag table, go to a node in the file using Info and type
  595. M-x Info-tagify.  Then you must use C-x C-s to save the file.
  596.  
  597.   Once the Info file has a tag table, you must make certain it is up
  598. to date.  If, as a result of deletion of text, any node moves back
  599. more than a thousand characters in the file from the position
  600. recorded in the tag table, Info will no longer be able to find that
  601. node.  To update the tag table, use the Info-tagify command again.
  602.  
  603.   An Info file tag table appears at the end of the file and looks like
  604. this:
  605.  
  606. ^_
  607. Tag Table:
  608. File: info, Node: Cross-refs21419
  609. File: info,  Node: Tags22145
  610. ^_
  611. End Tag Table
  612.  
  613. Note that it contains one line per node, and this line contains
  614. the beginning of the node's header (ending just after the node name),
  615. a Delete character, and the character position in the file of the
  616. beginning of the node.
  617. 
  618. File: info,  Node: Checking,  Previous: Tags,  Up: Top,  Next: Variables
  619.  
  620. Checking an Info File:
  621.  
  622.   When creating an Info file, it is easy to forget the name of a node
  623. when you are making a pointer to it from another node.  If you put in
  624. the wrong name for a node, this will not be detected until someone
  625. tries to go through the pointer using Info.  Verification of the Info
  626. file is an automatic process which checks all pointers to nodes and
  627. reports any pointers which are invalid.  Every Next, Previous, and Up
  628. is checked, as is every menu item and every cross reference.  In addition,
  629. any Next which doesn't have a Previous pointing back is reported.
  630. Only pointers within the file are checked, because checking pointers
  631. to other files would be terribly slow.  But those are usually few.
  632.  
  633.   To check an Info file, do M-x Info-validate while looking at any
  634. node of the file with Info.
  635. 
  636. File: info  Node: Variables,  Prev: Checking,  Up: Top
  637.  
  638. These variables modify the behavior of Info:
  639.  
  640. `Info-enable-edit'
  641.      nil disables the "e" (Info-edit) command, non-nil enables it.
  642.      (*Note Edit: Add.)
  643.  
  644. `Info-enable-active-nodes'
  645.      Non-nil allows Info to execute Lisp code associated with nodes.
  646.      The Lisp code is executed when the node is selected.
  647.      (*Note Active nodes: Node format.)
  648.  
  649. `Info-path'
  650.      List of directories to search for info files.  Each element is a
  651.      string (directory name) or nil (try default directory).
  652.  
  653. `Info-directory'
  654.      Standard directory for Info documentation files.  Only used as
  655.      part of Info-path.
  656. 
  657. Tag table:
  658. File: info,  Node: Checking25796
  659. File: info,  Node: Tags24579
  660. File: info, Node: Cross-refs23926
  661. File: info, Node: Menus21121
  662. File: info,  Node: Add18186
  663. File: info,  Node: Expert15972
  664. File: info    Node: Help-Q15421
  665. File: info    Node: Help-Cross14907
  666. File: info    Node: Help-Adv12631
  667. File: info    Node: Help-FOO11930
  668. File: info    Node: Help-M6648
  669. File: info    Node: Help-^L4141
  670. File: info    Node: Help-P3393
  671. File: info    Node: Help2444
  672. File: info    Node: Help-Small-Screen816
  673. File: info    Node: Top111
  674. 
  675. End tag table
  676.